package com.itheima.fuxichengxu;

import java.util.Random;

public class RandomDemo {
    public static void main(String[] args) {
        //导包Random
        Random r = new Random();
        for (int i = 1; i <= 10 ; i++) {

            int number = r.nextInt(10) + 1;

            System.out.println(number);

        }

    }
}
